package com.college.eduService.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "service-ucenter")
public interface CommentClient {

    //根据课程id查询评论条数
    @GetMapping("/eduservice/edu-comment/getCommentCount/{courseId}")
    public int getCommentCount(@PathVariable String courseId);
}
